package com.shoukaiseki.test.spring.springsession;

import org.springframework.context.annotation.Bean;
import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * <br>
 *
 * @author 蒋カイセキ    Japan-Tokyo  18-10-24 上午10:42<br>
 * ブログ http://www.shoukaiseki.top/<br>
 * E-メール jiang28555@Gmail.com<br>
 **/
@EnableRedisHttpSession(maxInactiveIntervalInSeconds = 300)
public class Config {

    @Bean
    public LettuceConnectionFactory connectionFactory() {
        System.out.println("Config-----------");
        return new LettuceConnectionFactory();
    }


//    @Bean
//    public LettuceConnectionFactory getConfig() {
//        return new LettuceConnectionFactory();
//    }
}
